﻿#include "GraphEventOperator.h"

namespace EventOper
{
    void GraphEventOperator::updateAll(bool forceUpdate)
    {
        Q_UNUSED(forceUpdate);
    }

    void GraphEventOperator::updateGraph(int dataObjId, bool forceUpdate)
    {
        // 根据不同子类重写。
        Q_UNUSED(dataObjId);
        Q_UNUSED(forceUpdate);
    }

    void GraphEventOperator::updateAllModel(bool forceUpate)
    {
        Q_UNUSED(forceUpate);
    }

    void GraphEventOperator::updateAllInstance(bool forceUpate)
    {
        Q_UNUSED(forceUpate);
    }

    Exchange::GraphVTKObject3D * GraphEventOperator::getModelGraphObjectByDataId(int dataObjId)
    {
        Q_UNUSED(dataObjId);
        return nullptr;
    }


    void GraphEventOperator::updateGraphRecursively(int dataObjId, int refLayer, bool recDown)
    {
        Q_UNUSED(dataObjId);
        Q_UNUSED(refLayer);
        Q_UNUSED(recDown);
    }

    void GraphEventOperator::setModelVisible(int dataObjId, bool visibility, bool isFitView)
    {
        Q_UNUSED(dataObjId);
        Q_UNUSED(visibility);
        Q_UNUSED(isFitView);
    }

    void GraphEventOperator::setPointVisible(bool visibility, bool isPart, bool isFitView)
    {
        Q_UNUSED(visibility);
        Q_UNUSED(isPart);
        Q_UNUSED(isFitView);
    }

    void GraphEventOperator::setLineVisible(bool visibility, bool isPart, bool isFitView)
    {
        Q_UNUSED(visibility);
        Q_UNUSED(isPart);
        Q_UNUSED(isFitView);
    }

    void GraphEventOperator::setAllModelVisible(bool visibility, bool isPart, bool isFitView)
    {
        Q_UNUSED(visibility);
        Q_UNUSED(isPart);
        Q_UNUSED(isFitView);
    }

    void GraphEventOperator::setAllInstanceVisible(bool visibility, bool isFitView)
    {
        Q_UNUSED(visibility);
        Q_UNUSED(isFitView);
    }

    void GraphEventOperator::hightObject(int dataObjId, QColor color)
    {
        Q_UNUSED(dataObjId);
        Q_UNUSED(color);
    }

    void GraphEventOperator::hightSetObject(int dataObjId, int parentID, QColor color)
    {
        Q_UNUSED(dataObjId);
        Q_UNUSED(parentID);
        Q_UNUSED(color);
    }

    void GraphEventOperator::disHightObject(int dataObjId, int parentID)
    {
        Q_UNUSED(dataObjId);
        Q_UNUSED(parentID);
    }

    void GraphEventOperator::clearAllHight()
    {

    }

    void GraphEventOperator::render()
    {

    }

    void GraphEventOperator::fitView()
    {

    }

    void GraphEventOperator::updateColor(int dataObjId, QColor color, QVariant otherPar)
    {
        Q_UNUSED(dataObjId);
        Q_UNUSED(otherPar);
        Q_UNUSED(color);
    }

    void GraphEventOperator::updateAllColor(int dataObjId, QColor color)
    {
        Q_UNUSED(dataObjId);
        Q_UNUSED(color);
    }
    void GraphEventOperator::updatePointSize(int dataObjId, int pointSize)
    {
        Q_UNUSED(dataObjId);
        Q_UNUSED(pointSize);
    }
    void GraphEventOperator::updateLineWidth(int dataObjId, int lineWidth)
    {
        Q_UNUSED(dataObjId);
        Q_UNUSED(lineWidth);
    }
    void GraphEventOperator::updateOpacity(int dataObjId, double opacity)
    {
        Q_UNUSED(dataObjId);
        Q_UNUSED(opacity);
    }
    void GraphEventOperator::updateRepresentation(int dataObjId, int representation)
    {
        Q_UNUSED(dataObjId);
        Q_UNUSED(representation);
    }
    void GraphEventOperator::changeField(int dataId, int type, QString fieldName, int compIndex)
    {
        Q_UNUSED(dataId);
        Q_UNUSED(type);
        Q_UNUSED(fieldName);
        Q_UNUSED(compIndex);
    }
    void GraphEventOperator::updateScalarBarVisibility(int selectedDataId)
    {
        Q_UNUSED(selectedDataId);
    }
    void GraphEventOperator::updateTextInfo(int dataId, QString info)
    {
        Q_UNUSED(dataId);
        Q_UNUSED(info);
    }

    void GraphEventOperator::setRangeColor(bool isOpenOutRanger, int postId, QColor minRangeColor, QColor maxRangeColor, double transparency)
    {
        Q_UNUSED(isOpenOutRanger);
        Q_UNUSED(minRangeColor);
        Q_UNUSED(maxRangeColor);
        Q_UNUSED(transparency);
    }

    void GraphEventOperator::setOutRangerColor(bool isOpenOutRanger, int postId, double* aboveRGBA, double* belowRGBA, int colorNum)
    {
        Q_UNUSED(isOpenOutRanger);
        Q_UNUSED(aboveRGBA);
        Q_UNUSED(belowRGBA);
        Q_UNUSED(colorNum);
    }
}  // namespace EventOper
